<%@ page import="java.util.ArrayList" %>
<%@ page import="sun.com.Student" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
        table{
            width: 600px;
            border: 3px hotpink solid;
            border-collapse: collapse;


        }
        tr,td{
            border: 3px hotpink solid;
            border-collapse: collapse;
        }
    </style>
</head>
<body>
<%List<Student> list = new ArrayList<Student>();
for(int i = 1;i<=10;i++){
    list.add(new Student(i,i+("name"+i),(i%2==0?true:false),"1008"+i));
}
%>
<table align="center">
    <tr>
        <td>
            编号
        </td>
        <td>
            姓名
        </td>
        <td>
            性别
        </td>
        <td>
            电话
        </td>
        <td>
            操作
        </td>
    </tr>
    <%
        for (int i =0;i<list.size();i++){
            Student stu = list.get(i);
            %>
    <tr>
        <%
            %>
            <td><%=stu.getId()%></td>
        <td><%=stu.getName()%></td>
        <td> <%=stu.getAge()%></td>
        <td> <%= stu.getPhone()%></td>
        <td>修改删除</td>
        <%
     %>
    </tr>
    <%
        }
%>
</table>
</body>
</html>
